//实例化并使用PairOfDice方法。
public class RollingDice2
{
  public static void main(String []args)
  {
   int sum;
   int a,b;

   PairOfDice die1 = new PairOfDice ();
   PairOfDice die2 = new PairOfDice ();
   

   a = die1.roll1();
   b = die1.roll1();
   System.out.println();
   System.out.println(a);
   System.out.println(b);
   System.out.println(a+b);
    
   die1.setFaceValue1(3);
   die2.setFaceValue2(4);
   System.out.println("Die1:"+die1.getFaceValue1()+"Die2:"+die2.getFaceValue2());

   sum = die1.getFaceValue1()+die2.getFaceValue2();
   System.out.println("Sum:"+sum);
   }
 }  

